<!DOCTYPE html>
{% load staticfiles %}
<html lang="en-us">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

    <meta name="description" content="">
    <meta name="author" content="">

    <meta name="robots" content="NONE,NOARCHIVE"/>
    <title>学生信息表列表 | 温县第一高级中学后台管理</title>


    <link href="{% static 'css/bootstrap.css' %}" type="text/css" media="screen" rel="stylesheet"/>

    <link rel="stylesheet" type="text/css" id="site-theme" href="{% static 'css/bootstrap-xadmin.css' %}"/>

    <link href="{% static 'css/font-awesome.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <link href="{% static 'css/xadmin.main.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <link href="{% static 'css/xadmin.plugins.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <link href="{% static 'css/xadmin.responsive.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <link href="{% static 'css/xadmin.form.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <link href="{% static 'css/xadmin.plugins.css' %}" type="text/css" media="screen" rel="stylesheet"/>
    <script type="text/javascript" src="{% static 'js/jquery.js' %}"></script>

{#    <script type="text/javascript" src="/xadmin/jsi18n/"></script>#}
</head>
<body class="change-list">

<!-- Header -->

<div id="top-nav" class="navbar navbar-xs navbar-inverse navbar-fixed-top">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">温县第一高级中学后台管理</a>
    </div>
    <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav pull-right">

            <li class="dropdown">
                <a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">
                    <strong>欢迎， {{ teacher_name }}</strong></a>
            </li>

            <li><a href="{% url 'logout' %}"><i class="show-sm fa fa-sign-out"></i><span class="hide-sm">注销</span></a>
            </li>
        </ul>


    </div>
</div>

<div id="body-content" class="clearfix row">

    <div id="left-side" class="col-sm-1 col-md-2">
        <div class="panel-group hide-sm nav-sitemenu col-md-2" id="nav-accordion">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h6 class="panel-title">
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#nav-accordion"
                           href="#nav-panel-1">
                            <i class="fa-fw fa fa-lock"></i>
                            &nbsp;个人中心
                        </a>
                    </h6>
                </div>
                <div id="nav-panel-1" class="list-group panel-collapse in" style="height: auto;">
                    <a href="{% url 'teacher:teacher_infoshow' %}" class="list-group-item">
                        <i class="fa-fw fa fa-circle-o"></i>
                        &nbsp;基本信息
                    </a>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h6 class="panel-title">
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#nav-accordion"
                           href="#nav-panel-2">
                            <i class="fa-fw fa fa-group"></i>
                            &nbsp;学生管理
                        </a>
                    </h6>
                </div>
                <div id="nav-panel-2" class="list-group panel-collapse in" style="height: auto;">
                    <a href="{% url 'teacher:teacher_studentlist' %}" class="list-group-item">
                        <i class="fa-fw fa fa-circle-o"></i>
                        &nbsp;学生信息管理
                    </a>
                    <a href="{% url 'teacher:teacher_scorelist' %}" class="list-group-item">
                        <i class="fa-fw fa fa-circle-o"></i>
                        &nbsp;学生成绩管理
                    </a>
                    <a href="{% url 'teacher:teacher_classlist' %}" class="list-group-item">
                        <i class="fa-fw fa fa-circle-o"></i>
                        &nbsp;班级管理
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div id="content-block" class="col-sm-11 col-md-10">

        <ul class="breadcrumb">
            <li>
                <a href="{% url 'teacher:teacher_index' %}">首页</a>
            </li>
            <li>
                成绩列表
            </li>
        </ul>


        <div class="navbar content-navbar navbar-default navbar-xs" data-toggle="breakpoint"
             data-class-xs="navbar content-navbar navbar-inverse navbar-xs"
             data-class-sm="navbar content-navbar navbar-default navbar-xs">
            <div class="navbar-header">
                <a class="navbar-brand" data-toggle="collapse" data-target="#top-nav .navbar-collapse">
                    {% if rel_student_number %}
                    <span class='rel-brand'>{{ score_queryset.0.file_number.student_name }} <i class='fa fa-caret-right'></i></span>
                    {% endif %}
                    成绩列表
                </a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">

                    <li class="dropdown">
                        <a id="drop-filter" class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">
                            <i class="fa fa-filter"></i> 过滤器
                            {% if filter_count %}
                            <span class="badge badge-success">{{ filter_count }}</span>
                            {% endif %}
                            <span class="caret"></span></a>
                            <ul id="filter-menu" class="dropdown-menu" role="menu" aria-labelledby="drop-filter">
                            {% if filter_count %}
                            <li><a href="?">
                                <i class="fa fa-trash-o"></i> 清除过滤器</a>
                            </li>
                                <li class="divider"></li>
                            {% endif %}

                            <li class="dropdown-submenu">
                                <a><i class="fa fa-filter text-muted"></i> 考试</a>
                                <ul class="dropdown-menu">

                                    <li {% if not exam_id %}class="active"{% endif %}>
                                        <a href="?{% if class_id %}class_id={{ class_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">全部</a></li>
                                    {% for exam in exam_queryset %}
                                    <li {% ifequal exam_id exam.id|lower %}class="active"{% endifequal%}>
                                        <a
                                        href="?exam_id={{ exam.id }}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}"
                                        >{{ exam }}</a></li>
                                    {% endfor %}

                                </ul>
                            </li>
                            <li class="dropdown-submenu">
                                <a><i class="fa fa-filter text-muted"></i> 年级</a>
                                <ul class="dropdown-menu">

                                    <li {% if not grade_id %}class="active"{% endif %}>
                                        <a href="?{% if exam_id %}exam_id={{ exam_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">全部</a></li>
                                    {% for grade in grade_queryset %}
                                    <li {% ifequal grade_id grade.id|lower %}class="active"{% endifequal%}>
                                        <a
                                        href="?grade_id={{ grade.id }}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}"
                                        >{{ grade }}</a></li>
                                    {% endfor %}

                                </ul>
                            </li>
                            <li class="dropdown-submenu">
                                <a><i class="fa fa-filter text-muted"></i> 班级</a>
                                <ul class="dropdown-menu">
                                    <li {% if not class_id %}class="active"{% endif %}>
                                        <a href="?{% if exam_id %}exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">全部</a></li>
                                    {% for clas in class_queryset %}
                                    <li {% ifequal class_id clas.id|lower %}class="active"{% endifequal%}>
                                        <a
                                        href="?class_id={{ clas.id }}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}"
                                        >{{ clas }}</a></li>
                                    {% endfor %}
                                </ul>
                            </li>
                        </ul>
                    </li>
                </ul>


                <form class="navbar-form navbar-left" action="" method="get">
                    <div class="input-group search-group">
                        {% if q %}
                        <span class="input-group-btn"><a class="btn btn-default" href="?">x</a></span>
                        {% endif %}
                        <input id="searchbar" class="form-control" type="text" name="q" value="{% if q %}{{ q }}{% endif %}"
                               placeholder="搜索 成绩信息">
                        <span class="input-group-btn"><button class="btn btn-primary" type="submit"><i
                                class="fa fa-search"></i></button></span>
                    </div>

                </form>

            </div>
        </div>

        <ul class="pagination pagination-sm pagination-left pagination-inline">
            <li><span><span class="text-success">{{ score_queryset.count }}</span> 成绩列表</span></li>
        </ul>

        <form id="changelist-form" action="" method="post">
            <div class="results table-responsive">

                <table class="table table-bordered table-striped table-hover">
                    <thead>
                    <tr>
                        <th scope="col" class="action-checkbox-column">

                        </th>
                        <th scope="col" style="color: #428bca">
                            学生
                        </th>
                        <th scope="col" style="color: #428bca">
                            考试
                        </th>
                        <th scope="col" style="color: #428bca">
                            班级
                        </th>
                        <th scope="col" style="color: #428bca">
                            年级
                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="
?chinese=-chinese{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal chinese 'chinese' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?chinese=chinese{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal chinese '-chinese' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    语文
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?chinese=chinese{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?chinese=-chinese{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>


                                    <li {% if not chinese %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="
?math=-math{% if chinese %}&chinese={{ chinese }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal math 'math' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?math=math{% if chinese %}&chinese={{ chinese }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal math '-math' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    数学
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?math=math{% if chinese %}&chinese={{ chinese }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?math=-math{% if chinese %}&chinese={{ chinese }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not math %}style="display: none"{% endif %}><a href="
?{% if chinese %}&chinese={{ chinese }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">

                            <div class="pull-right">
                                <a class="toggle" href="
?english=-english{% if math %}&math={{ math }}{% endif %}{% if chinese%}&chinese={{ chinese}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal english 'english' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?english=english{% if math %}&math={{ math }}{% endif %}{% if chinese %}&chinese={{ chinese}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal english '-english' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    英语
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="?
?english=english{% if math %}&math={{ math }}{% endif %}{% if chinese%}&chinese={{ chinese}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="?
?english=english{% if math %}&math={{ math }}{% endif %}{% if chinese%}&chinese={{ chinese}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not english %}style="display: none"{% endif %}><a href="?
?{% if math %}&math={{ math }}{% endif %}{% if chinese%}&chinese={{ chinese}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="
?physical=-physical{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal physical 'physical' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?physical=physical{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal physical '-physical' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    物理
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?physical=physical{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?physical=-physical{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not physical %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="
?chemistry=-chemistry{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal chemistry 'chemistry' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?chemistry=chemistry{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal chemistry '-chemistry' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    化学
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?chemistry=chemistry{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?chemistry=-chemistry{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not chemistry %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">

                            <div class="pull-right">
                                <a class="toggle" href="
?biology=-biology{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal biology 'biology' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?biology=biology{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal biology '-biology' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    生物
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?biology=biology{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?biology=-biology{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>


                                    <li {% if not biology %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">

                            <div class="pull-right">
                                <a class="toggle" href="
?politics=-politics{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal politics 'politics' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?politics=politics{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal politics '-politics' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    政治
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?politics=politics{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?politics=-politics{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>


                                    <li {% if not politics %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">

                            <div class="pull-right">
                                <a class="toggle" href="
?geography=-geography{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal geography 'geography' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?geography=geography{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal geography '-geography' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    地理
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?geography=geography{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?geography=-geography{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not geography %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if history %}&history={{ history }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="
?history=-history{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal history 'history' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="
?history=history{% if math %}&math={{ math }}{% endif %}{% if english %}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

">
                                    {% ifequal history '-history' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    历史
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="
?history=history{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="
?history=-history{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not history %}style="display: none"{% endif %}><a href="
?{% if math %}&math={{ math }}{% endif %}{% if english%}&english={{ english}}{% endif %}{% if physical %}&physical={{ physical }}{% endif %}{% if chemistry %}&chemistry={{ chemistry }}{% endif %}{% if biology %}&biology={{ biology }}{% endif %}{% if politics %}&politics={{ politics }}{% endif %}{% if geography %}&geography={{ geography }}{% endif %}{% if chinese %}&chinese={{ chinese }}{% endif %}{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}

" class="active"><i class="fa fa-times"></i> 取消排序</li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="?sum_score=-sum_score{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal sum_score 'sum_score' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="?sum_score=-sum_score{% if all %}&all={{ all }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}
">
                                    {% ifequal sum_score '-sum_score' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    总分
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="?sum_score=sum_score{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="?sum_score=-sum_score{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not sum_score %}style="display: none"{% endif %}><a href="?{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active">
                                            <i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">
                            <div class="pull-right">
                                <a class="toggle" href="?grade_rank=-grade_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">
                                    {% ifequal grade_rank 'grade_rank' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="?grade_rank=grade_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">
                                    {% ifequal grade_rank '-grade_rank' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>

                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    年级排名
                                </a>
                                <ul class="dropdown-menu" role="menu">

                                    <li><a href="?grade_rank=grade_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>

                                    <li><a href="?grade_rank=-grade_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>

                                    <li {% if not grade_rank %}style="display: none"{% endif %}><a href="?{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active">
                                        <i class="fa fa-times"></i> 取消排序</a></li>

                                </ul>
                            </div>

                        </th>
                        <th scope="col" class="sortable">

                            <div class="pull-right">
                                <a class="toggle" href="?class_rank=-class_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">
                                    {% ifequal class_rank 'class_rank' %}
                                    <i class="fa fa-sort-up"></i>
                                    {% endifequal %}
                                </a>
                                <a class="toggle" href="?class_rank=class_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}">
                                    {% ifequal class_rank '-class_rank' %}
                                    <i class="fa fa-sort-down"></i>
                                    {% endifequal %}
                                </a>
                            </div>
                            <div class="dropdown pull-left">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    班级排名
                                </a>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="?class_rank=class_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-up"></i> 正序</a></li>
                                    <li><a href="?class_rank=-class_rank{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active"><i
                                            class="fa fa-caret-down"></i> 倒序</a></li>
                                    <li {% if not class_rank %}style="display: none"{% endif %}><a href="?{% if all %}&all={{ all }}{% endif %}{% if q %}&q={{ q }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="active">
                                        <i class="fa fa-times"></i> 取消排序</a></li>
                                </ul>
                            </div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {% for score in score_page.object_list %}
                    <tr class="grid-item">
                        <td class="action-checkbox">
                            <a class="dropdown-toggle" style="text-decoration: none">
                                {{ forloop.counter }}
                            </a>
                        </td>
                        <td class="nowrap">
                            <a href="{% url 'teacher:teacher_scoreinfo' %}?score_id={{ score.score_id }}">{{ score.file_number }}</a>
                        </td>

                        <td class="nowrap">
                            {{ score.which_exam }}
                        </td>
                        <td>
                            {{ score.get_student_class }}
                        </td>
                        <td>
                            {{ score.get_student_grade }}
                        </td>
                        <td>
                            {{ score.chinese }}
                        </td>
                        <td>
                            {{ score.math }}
                        </td>
                        <td>
                            {{ score.english }}
                        </td>
                        <td>
                            {{ score.physical }}
                        </td>
                        <td>
                            {{ score.chemistry }}
                        </td>
                        <td>
                            {{ score.biology }}
                        </td>
                        <td>
                            {{ score.politics }}
                        </td>
                        <td>
                            {{ score.geography }}
                        </td>
                        <td>
                            {{ score.history }}
                        </td>
                        <td>
                            {{ score.sum_score }}
                        </td>
                        <td>
                            {{ score.grade_rank }}
                        </td>
                        <td>
                            {{ score.class_rank }}
                        </td>
                    </tr>
                    {% endfor %}
                    </tbody>

                </table>


            </div>

            <div class="form-actions well well-sm">
                <input type="hidden" id="action" name="action" value=""/>
                <input type="hidden" id="select-across" name="select_across" value=""/>
{#                <div class="btn-group clearfix dropup">#}
{#                    <a class="dropdown-toggle btn btn-success" data-toggle="dropdown" href="#">#}
{#                        <i class="fa fa-wrench"></i>#}
{#                        <span class="caret"></span></a>#}
{#                </div>#}

            </div>

        </form>

        <ul class="pagination">

            <li><span><span class="text-success">{{ score_queryset.count }}</span> 成绩列表</span></li>
            {% if score_page.has_previous %}
                <li><a href="?{{ score_page.previous_page_number.querystring }}">
                    上一页</a></li>
            {% endif %}
            {% for page in score_page.pages %}
                {% if page %}
                    {% ifequal page score_page.number %}
                        <li><span class="this-page">{{ page }}</span></li>
                    {% else %}
                        <li><a href="?{{ page.querystring }}">{{ page }}</a></li>
                    {% endifequal %}
                {% else %}
                    <li class="dot-page"><a href="">...</a></li>
                {% endif %}
            {% endfor %}

            {% if score_page.has_next %}
                <li><a href="?{{ score_page.next_page_number.querystring }}">
                    下一页</a></li>
            {% endif %}
            <li>
                {% ifequal all '1' %}
                    <a href="?{% if grade_id %}grade_id={{ grade_id }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="showall">取消显示全部</a>
                {% else %}
                    <a href="?all=1{% if grade_id %}&grade_id={{ grade_id }}{% endif %}{% if exam_id %}&exam_id={{ exam_id }}{% endif %}{% if class_id %}&class_id={{ class_id }}{% endif %}{% if rel_student_number %}&rel_student_number={{ rel_student_number }}{% endif %}" class="showall">显示全部</a>
                {% endifequal %}
            </li>
        </ul>
    </div>
</div>


<div id="footer">
    <hr/>
    <footer class="text-center">
        <p>&copy; welcome to 温县第一高级中学后台管理 如果有问题请联系：XXXXXXXXXXX</p>
    </footer>
</div>


<script type="text/javascript" src="{% static 'js/jquery.ui.core.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.widget.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.mouse.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.sortable.js' %}"></script>
<script type="text/javascript" src="{% static 'js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.main.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.responsive.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.effect.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.themes.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.details.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.bookmark.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.filters.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.plugin.actions.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.page.list.js' %}"></script>
<script type="text/javascript" src="{% static 'js/xadmin.page.form.js' %}"></script>


</body>
</html>
